package com.nuc.ENetcom.service;

import java.sql.SQLException;
import java.util.List;

import com.nuc.ENetcom.utils.PageUtil;

public interface BaseService<T> {
	public int delete(String id) throws SQLException;

	public int save(T user) throws SQLException;
	
	public T get(String id) throws SQLException;
	
	public List<T> getAll() throws SQLException;
	
	public int getTotal() throws SQLException;

	public List<T> getPage(int pageno, int pagesize) throws SQLException;
	
	public PageUtil<T> getPage1(int pageno,int pagesize);
}
